package cn.yunhe.dao;

import java.util.List;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import cn.yunhe.model.Emp;

public class EmpDaoImpl extends HibernateDaoSupport implements EmpDao {

	public void insertEmp(Emp emp) {
		getHibernateTemplate().save(emp);
	}

	public List<Emp> seacherAllEmp() {
		return getHibernateTemplate().find("select e from Emp e join e.dept");
	}

}
